<?php
declare(strict_types=1);

namespace App\Repository\Admin;

use App\Model\SystemLog;

class SystemLogRepository
{
    public function getLogsByUser(int $id, int $perPage, int $page)
    {
        return SystemLog::where('user_id', $id)
            ->paginate($perPage, page: $page);
    }
}